package com.example.survey_determination.service.impl;

import com.example.survey_determination.dao.VerifyLossInfoDao;
import com.example.survey_determination.service.VerifyLossInfoService;
import entity.verify_loss_info;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (VerifyLossInfo)表服务实现类
 *
 * @author makejava
 * @since 2022-01-10 23:58:27
 */
@Service("verifyLossInfoService")
public class VerifyLossInfoServiceImpl implements VerifyLossInfoService {
    @Resource
    private VerifyLossInfoDao verifyLossInfoDao;


    @Override
    public verify_loss_info queryById(String claimMainId) {
        return this.verifyLossInfoDao.queryById(claimMainId);
    }

    @Override
    public int insert(verify_loss_info verify_loss_info) {
        return this.verifyLossInfoDao.insert(verify_loss_info);
    }


    /**
     * 通过主键删除数据
     *
     * @param verifylossid 主键
     * @return 是否成功
     */
    @Override
    public boolean deleteById(Integer verifylossid) {
        return this.verifyLossInfoDao.deleteById(verifylossid) > 0;
    }
}
